using System;
using System.Collections.Generic;
using System.Text;
using OgilvyOne.DALFactory;
using OgilvyOne.IDAL;
using OgilvyOne.Model;
using System.Collections;

namespace OgilvyOne.BLL
{
    public class FuncRole
    {
        // Methods
        public void DeleteByRoleID(int iRUID)
        {
            OgilvyOne.DALFactory.FuncRole.Create().DeleteByRoleID(iRUID);
        }

        public string getFuncByRoleUID(string sroleid)
        {
            return OgilvyOne.DALFactory.FuncRole.Create().getFuncByRoleID(sroleid);
        }

        public IList getFuncListByRoleID(int roleid)
        {
            return OgilvyOne.DALFactory.FuncRole.Create().getFuncListByRoleID(roleid);
        }

        public IList getFuncRoleList()
        {
            return OgilvyOne.DALFactory.FuncRole.Create().getFuncRoleList();
        }

        public IList getFuncRoleList(int funcid)
        {
            return OgilvyOne.DALFactory.FuncRole.Create().getFuncRoleList(funcid);
        }

        public void Insert(FuncRoleInfo func)
        {
            OgilvyOne.DALFactory.FuncRole.Create().Insert(func);
        }

        public void Update(FuncRoleInfo func)
        {
            OgilvyOne.DALFactory.FuncRole.Create().Update(func);
        }

    }
}
